package org.itstack;


import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class OrderEngineConfig {
    
    static Map<String, OrderLogicFilter> logicFilterMap;
    
    static {
        logicFilterMap = new ConcurrentHashMap<>();
        logicFilterMap.put("orderType", new OrderTypeFilter());
        logicFilterMap.put("orderAmount", new OrderAmountFilter());
        logicFilterMap.put("customerLevel", new CustomerLevelFilter());
    }
    
    public Map<String, OrderLogicFilter> getLogicFilterMap() {
        return logicFilterMap;
    }
    
    public void setLogicFilterMap(Map<String, OrderLogicFilter> logicFilterMap) {
        this.logicFilterMap = logicFilterMap;
    }
}
